package edu.nf.exam.service;

import com.github.pagehelper.PageInfo;
import edu.nf.exam.entity.PaperQuestionInfo;

import java.util.List;

/**
 * @Author : QYM
 * @create 2021/6/17
 * 试题信息表--业务接口
 */
public interface PaperQuestionService {

    /**
     * 查询
     * @param paperQuestionInfo
     * @return
     */
    List<PaperQuestionInfo> checkSelect(PaperQuestionInfo paperQuestionInfo);

    /**
     * 根据ID查询
     * @param paperQuestionId
     * @return
     */
    PaperQuestionInfo selectById(Integer paperQuestionId);

    /**
     * 添加
     * @param paperQuestionInfo
     */
    void checkAdd(PaperQuestionInfo paperQuestionInfo);

    /**
     * 修改
     * @param paperQuestionInfo
     */
    void checkUpdate(PaperQuestionInfo paperQuestionInfo);

    /**
     * 分页查询
     * @param paperQuestionId
     * @param difficult
     * @param questionType
     * @param levelName
     * @param subjectName
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<PaperQuestionInfo> selectByPage(Integer paperQuestionId,Integer difficult, Integer questionType, String levelName, String subjectName,Integer pageNum,Integer pageSize);

    /**
     * 查询题目月数量
     * @param createTime
     * @return
     */
    List<PaperQuestionInfo> selectMonthCount(String createTime);
}
